import request from '@/utils/request'

// 创建团队订单
export function createOrde(data) {
  return request({
    url: '/team/orde/create',
    method: 'post',
    data: data
  })
}

// 更新团队订单
export function updateOrde(data) {
  return request({
    url: '/team/orde/update',
    method: 'put',
    data: data
  })
}
// 批量更新团队订单
export function updateBatch(data) {
  return request({
    url: '/team/orde/updateBatch',
    method: 'put',
    data: data
  })
}

// 删除团队订单
export function deleteOrde(id) {
  return request({
    url: '/team/orde/delete?id=' + id,
    method: 'delete'
  })
}

// 获得团队订单
export function getOrde(id) {
  return request({
    url: '/team/orde/get?id=' + id,
    method: 'get'
  })
}

// 获得团队订单分页
export function getOrdePage(params) {
  return request({
    url: '/team/orde/page',
    method: 'get',
    params
  })
}
// 导出团队订单 Excel
export function exportOrdeExcel(params) {
  return request({
    url: '/team/orde/export-excel',
    method: 'get',
    params,
    responseType: 'blob'
  })
}